home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 013 / sd2_x.arc / SD2-X.COM next >
Encoding:
Text File  |  1984-11-01  |  4.3 KB  |  136 lines

  1. -----------------------------------------------------------------------
  2.  
  3.           SD - MS-DOS Sorted Directory Utility Program
  4.  
  5.         SD.COM V4.2 (c) by John Stetson 12-Aug-84
  6.  
  7.           This program is in the public domain
  8.  
  9. -----------------------------------------------------------------------
  10.  
  11.     This is a sorted directory utility program which operates
  12.     under the Microsoft Disk Operating System Version 1.X or 2.X.
  13.  
  14.     There are two different versions of the program tailored
  15.     for either the Zenith Z-100 or IBM-PC compatible computers.
  16.  
  17.     SD provides more information than the MS-DOS resident DIR
  18.     command about the files on a disk, and allows the user to
  19.     format and sort the information in a variety of ways.
  20.  
  21.      1) Command line syntax:
  22.  
  23.     sd [dev:][path][fspec] /b/d/e/n /c/q/r/s /l/t/v/x
  24.  
  25.     The disk device [dev:] may be any valid drive name.
  26.  
  27.     [path] may not be used when operating under MS-DOS 1.X.
  28.  
  29.     The file specification [fspec] may be ambiguous (*,?).
  30.     A file spec of *. will display all subdirectory names.
  31.  
  32.     The default output format is two columns sorted
  33.     vertically by file name and extension.
  34.  
  35.      2) Description of switches:
  36.  
  37.     /b - sort file entries by file sizes in bytes
  38.     /d - sort file entries by modification date & time
  39.     /e - sort file entries by file name extension
  40.     /n - display entries in directory order (no sort)
  41.  
  42.     /c - clear console screen before displaying output
  43.     /q - quick output (no pauses between pages)
  44.     /r - produce output suitable for redirection
  45.     /s - include system and hidden files in output
  46.  
  47.     /l - long output format (with file attributes)
  48.     /t - display the totals output line only
  49.     /v - display volume and directory name info
  50.     /x - display the command line syntax summary
  51.  
  52.      3) Examples of use:
  53.  
  54.     A>sd
  55.  
  56.     Display the current directory of drive A.
  57.  
  58.     B>sd/d
  59.  
  60.     Display the current directory of drive B, sorted by date and time.
  61.  
  62.     C>sd b:/t
  63.  
  64.     Display only the directory totals information for the current
  65.     directory of drive B:
  66.  
  67.     A>sd *.asm
  68.  
  69.     Display all files having an extension of "asm" in the current
  70.     directory of drive A.
  71.  
  72.     B>sd temp.*/r >c:temp.dir
  73.  
  74.     Select all files having a name of "temp" in the current directory
  75.     of drive B and redirect the console output to file "c:temp.dir".
  76.  
  77.     C>sd \
  78.  
  79.     Display all files in the root directory of drive C.
  80.  
  81.     A>sd ..
  82.  
  83.     Display all files in the parent directory of the current
  84.     directory of drive A.
  85.  
  86.     B>sd ..\*.a?m/d
  87.  
  88.     Display all files in the parent directory of the current
  89.     directory of drive B whose extensions begin with "a" and
  90.     end with "m" and sort the output by date and time.
  91.  
  92.     C>sd b:\dir1\dir2\dir3\*.doc/d/r/l/v >doc.dir
  93.  
  94.     Select all files having an extension of "doc" in the directory
  95.     "\dir1\dir2\dir3" of drive B.  Sort the output by date and time.
  96.     Use the long output format with one entry per line and display
  97.     the file attributes.  Include volume and directory information.
  98.     Redirect the console output to the file "doc.dir" in the current
  99.     directory of drive C.
  100.  
  101.     A>sd b:/r (^P)
  102.     (console output is duplicated on the printer)
  103.     A> (^N)
  104.  
  105.     Display the current directory of drive B and duplicate the
  106.     console output on the printer.
  107.  
  108.      4) General description:
  109.  
  110.     If /q is not specified, output is paused every 24 lines.
  111.     Console output may be paused by typing any character
  112.     and is restarted when another character is typed.
  113.     Typing Control-C will cause the program to terminate.
  114.  
  115.     If it is desired to redirect console output to a file
  116.     or to the printer, the /r switch must be specified to
  117.     tell the command to use the MS-DOS console output function.
  118.     SD uses BIOS console routines, as a default, for efficiency.
  119.  
  120.     If the /l switch is specified, the following file
  121.     attributes are displayed at the end of each line:
  122.  
  123.     A - Archive  S - System  H - Hidden  R - Read Only
  124.  
  125.     Disk space used and free are displayed to the nearest byte,
  126.     and are not rounded up to the next disk allocation unit.
  127.  
  128.     The /v switch causes the volume label (if it exists),
  129.     volume creation date and time, and the target directory
  130.     name to be displayed.
  131.  
  132.     Specifying an invalid switch such as /h or /x will result
  133.     in the command line syntax summary being displayed.
  134.  
  135. -----------------------------------------------------------------------
  136.